<?php  
$con=mysqli_connect("localhost","root","youhanmo1997");
if(!$con){
	die("error:".mysqli_errno()) ;
}  

mysqli_select_db($con,"students_management");	

$sql="DELETE  FROM course_select WHERE sid=".$_POST['sid']." AND cid = ".$_POST['cid']." ;";


//$sql.=" limit ".($page-1)*$pagenumber.",".$pagenumber.";";
//echo $sql;
$result = mysqli_query($con,$sql);
if (!$result) {
 printf("Error: %s\n", mysqli_error($con));
 exit();
}else
echo "Successfully deleted!";
?>